package com.topscore.promotion.ticket;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RefreshScope
@RestController
public class SampleController {

    @Value("${upload.path}")
    private String path;

    @GetMapping("/path")
    public String path() {
        return this.path;
    }

    @Value("${server.port}")
    private Integer port;

    @GetMapping("/port")
    public Integer port() {
        return this.port;
    }
}
